package cn.edu.lingnan.service;

import cn.edu.lingnan.dao.ClubDao;
import cn.edu.lingnan.dao.ClubDaoMysqlImpl;
import cn.edu.lingnan.pojo.Club;

import java.util.List;

public class ClubServiceMysqlImpl implements ClubService{
    ClubDao clubDao=new ClubDaoMysqlImpl();
    @Override
    public boolean newclub(Club club) {
        return clubDao.newclub(club);
    }

    @Override
    public List<Club> findClubAll() {
        return clubDao.findClubAll();
    }

    @Override
    public Club findClubByCid(String cid) {
        return clubDao.findClubByCid(cid);
    }

    @Override
    public List<Club> findClubByCname(String cname) {
        return clubDao.findClubByCname(cname);
    }

    @Override
    public boolean updateCnameByCid(String cid, String cname) {
        return clubDao.updateCnameByCid(cid,cname);
    }

    @Override
    public boolean updateCflagByCid(String cid, String cflag) {
        return clubDao.updateCflagByCid(cid,cflag);
    }

    @Override
    public boolean updateClub(Club club) {
        return clubDao.updateClub(club);
    }

    @Override
    public boolean deleteClubByCid(String cid) {



        return clubDao.deleteClubByCid(cid);
    }
}
